package com.devplatform.service.points;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.devplatform.pojo.points.PointsMall;

/**
 * @author 86156
 * @description 针对表【points_mall】的数据库操作Service
 * @createDate 2025-09-28 14:44:33
 */
public interface PointsMallService extends IService<PointsMall> {
    //运营端添加商品
    void addGoods(PointsMall goods);

    //运营端编辑商品
    void updateGoods(PointsMall goods);

    //运营端下架商品
    void offGoods(Integer goodsId);

    void onGoods(Integer goodsId);

    //用户兑换可商品
    Page<PointsMall> getPointsMall(Integer userLevel, Integer pageNum, Integer pageSize);

    //兑换后商品减少
    void removeStock(PointsMall pointsMall);


}
